home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 7_5.lha / 7_5 / 7_5a1_line.c next >
Text File  |  1993-08-08  |  506b  |  25 lines

  1. * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
  2. * The C++ Answer Book */
  3. * Tony Hansen */
  4. * All rights reserved. */
  5. / Exercise 7.5
  6. / Rectangle derived from a line.
  7. / The data is in the public name space.
  8. lass line : public shape
  9.  
  10. ublic:
  11.    /* do not use this data unless you really have to */
  12.    point w, e;
  13.  
  14.    point north();
  15.    point east();
  16.    point south();
  17.    point west();
  18.  
  19.    void move(int a, int b);
  20.    void draw();
  21.  
  22.    line(point a, point b);
  23.    line(point a, int l);
  24. ;
  25.